package com.example.business_oa.service;

import com.example.comment_oa.dubbo.FuLiZhuBiaoDubbo;
import com.example.comment_oa.pojos.FlApplyzhu;
import com.example.comment_oa.pojos.SysDept;
import com.example.comment_oa.pojos_vo.salaryVo.LingDaoVo;
import io.seata.spring.annotation.GlobalTransactional;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FuLiZhuBiaoService {
    @DubboReference(version = "1.0.0")
    FuLiZhuBiaoDubbo fuLiZhuBiaoDubbo;


    @GlobalTransactional(timeoutMills = 300000)
    public int updateziduan2(FlApplyzhu flApplyzhu){
        int i = fuLiZhuBiaoDubbo.updaZiDuan2(flApplyzhu);
        return  i;
    }

    @GlobalTransactional(timeoutMills = 300000)
    public int shenpijujue(LingDaoVo lingDaoVo){
        int i = fuLiZhuBiaoDubbo.jujueshenpi(lingDaoVo);
        return  i;
    }

    @GlobalTransactional(timeoutMills = 300000)
    public int shenpitongyi(LingDaoVo lingDaoVo){
        int i = fuLiZhuBiaoDubbo.shenpitongyi(lingDaoVo);
        return  i;
    }

    @GlobalTransactional(timeoutMills = 300000)
    public FlApplyzhu chazhubiao(String bianhao){
        FlApplyzhu flApplyzhu = fuLiZhuBiaoDubbo.selectZhuBiaoFuLi(bianhao);
        return  flApplyzhu;
    }



}
